package com.netty;

import com.netty.server.MyServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@Slf4j
public class NettyStartApplication {

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(NettyStartApplication.class, args);
        log.info("application is running ......");

        MyServer server = new MyServer();
        server.start();
    }

}
